package com.jiehoo.java2html;

public class DefaultStyle implements Style {
	protected String begin;
	protected String end;

	public DefaultStyle() {
		begin = "";
		end = "";
	}

	public DefaultStyle(String begin, String end) {
		if (begin != null) {
			this.begin = begin;
		} else {
			this.begin = "";
		}
		if (end != null) {
			this.end = end;
		} else {
			this.end = "";
		}
	}

	public String getBegin() {
		return begin;
	}

	public void setBegin(String begin) {
		if (begin != null) {
			this.begin = begin;
		} else {
			this.begin = "";
		}
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		if (end != null) {
			this.end = end;
		} else {
			this.end = "";
		}
	}

	public String getStyle() {
		return begin + end;
	}

	public String toString() {
		return begin + end;
	}
}
